package com.base.cn.platform.os.dao.qa.record;

import com.base.cn.platform.os.common.mybatis.BaseDao;
import com.base.cn.platform.os.entity.qa.record.QaGainAttendRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;

/**
 * 围观收益记录Dao
 * @author LIZHIPENG
 * @since 2018/5/2
 */
@Mapper
public interface QaGainAttendRecordDao extends BaseDao<QaGainAttendRecord> {

    /**
     * 查询问答总数量数据
     * @param clazz
     * @return QaSumCount
     */
    List<HashMap<String,Object>> queryQaSumAmountCount(@Param("clazz") Class<QaGainAttendRecord> clazz, @Param("questionId") BigDecimal questionId);
}
